<?php
defined('_JEXEC') or die('Restricted access');

/**
 * @package             Joomla
 * @subpackage          CeltaWeb Traffic Component
 * @author              Steven Palmer
 * @author url          http://coalaweb.com
 * @author email        support@coalaweb.com
 * @license             GNU/GPL, see /files/en-GB.license.txt
 * @copyright           Copyright (c) 2012 Steven Palmer All rights reserved.
 * @version             Version 0.1.1 December 2012
 *
 * CeltaWeb Traffic is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.

 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

$user= &JFactory::getUser();
JHTML::stylesheet('com-celtawebtraffic-base.css', JURI::root().'/media/com_celtawebtraffic/css/');
?>

<div id="cpanel" style="float:left;width:60%;">
 
	<div style="float:left;">
    	<div class="icon">
	    	<a href="index.php?option=com_celtawebtraffic&view=visitors">
                    <img alt="<?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_VISITORS'); ?>" src="<?php echo JURI::root()?>/media/com_celtawebtraffic/images/icons/icon-48-celtawebtraffic-visitors.png" />
                    <span><?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_VISITORS'); ?></span>
	    	</a>
    	</div>
  	</div>

        <div style="float:left;">
            <div class="icon">
                <a href="index.php?option=com_celtawebtraffic&view=knownips">
                    <img alt="<?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_KNOWNIPS'); ?>" src="<?php echo JURI::root()?>/media/com_celtawebtraffic/images/icons/icon-48-celtawebtraffic-knownip.png" />
                    <span><?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_KNOWNIPS'); ?></span>
                </a>
            </div>
  	</div>
    
        <div style="float:left;">
            <div class="icon">
                <a onclick="Joomla.popupWindow('http://coalaweb.com/services/joomla-services-such-a-great-cms/joomla-docs/item/celtaweb-traffic-guide', 'Help', 700, 500, 1)" href="#">
                        <img alt="<?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_HELP'); ?>" src="<?php echo JURI::root()?>/media/com_celtawebtraffic/images/icons/cwt_icon_48_support.png" />
                        <span><?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_HELP'); ?></span>
                </a>
            </div>
  	</div>
    
        <div style="float:left;">
            <div class="icon">
                <a class="modal" rel="{handler: 'iframe', size: {x: 875, y: 550}, onClose: function() {}}" href="index.php?option=com_config&view=component&component=com_celtawebtraffic&path=&tmpl=component">
                        <img alt="<?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_OPTIONS'); ?>" src="<?php echo JURI::root()?>/media/com_celtawebtraffic/images/icons/cwt_icon_48_options.png" />
                        <span><?php echo JText::_('COM_CELTAWEBTRAFFIC_TITLE_OPTIONS'); ?></span>
                </a>
            </div>
  	</div>


	<div class="clr"></div>
</div>
<div id="tabs" style="float:right; width:40%;">

 	<?php
$options = array(
    'onActive' => 'function(title, description){
        description.setStyle("display", "block");
        title.addClass("open").removeClass("closed");
    }',
    'onBackground' => 'function(title, description){
        description.setStyle("display", "none");
        title.addClass("closed").removeClass("open");
    }',
    'startOffset' => 0,  // 0 starts on the first tab, 1 starts the second, etc...
//    'useCookie' => true, // this must not be a string. Don't use quotes.
    'startTransition' => 1,
);?>
 
<?php echo JHtml::_('sliders.start', 'slider_group_id', $options); ?>
 
<?php echo JHtml::_('sliders.panel', JText::_('COM_CELTAWEBTRAFFIC_SLIDER_TITLE_ABOUT'), 'slider_1_id'); ?>
        <span class="cw_slider">
            <?php echo JText::_( 'COM_CELTAWEBTRAFFIC_ABOUT_DESCRIPTION' ); ?>
        </span>
 
    <?php echo JHtml::_('sliders.panel', JText::_('COM_CELTAWEBTRAFFIC_SLIDER_TITLE_SUPPORT'), 'slider_2_id'); ?>
        <span class="cw_slider">
            <?php echo JText::_( 'COM_CELTAWEBTRAFFIC_SUPPORT_DESCRIPTION' ); ?>
        </span>
 
<?php echo JHtml::_('sliders.end'); ?>
</div>
<div class="clr"></div>








